import 'package:flutter/material.dart';

class AppUpgradeStyle {
  /// 对话框边距
  final EdgeInsets margin;

  /// 对话框最大高度
  final double maxHeight;

  /// 对话框圆角
  final double borderRadius;

  /// 对话框背景色
  final Color backgroundColor;

  /// 标题文字样式
  final TextStyle titleStyle;

  /// 内容文字样式
  final TextStyle contentStyle;

  /// 取消按钮文字样式
  final TextStyle cancelTextStyle;

  /// 确认按钮文字样式
  final TextStyle confirmTextStyle;

  /// 进度文字样式
  final TextStyle progressTextStyle;

  /// 按钮高度
  final double buttonHeight;

  /// 分割线颜色
  final Color dividerColor;

  /// 自定义进度条构建器
  final Widget Function(double progress)? progressBuilder;

  /// 进度条圆角
  final double progressBarBorderRadius;

  /// 进度条高度
  final double progressBarHeight;

  /// 进度条背景色
  final Color progressBarBackgroundColor;

  /// 进度条颜色
  final Color progressBarColor;

  /// 进度条水平内边距
  final EdgeInsets progressBarPadding;

  const AppUpgradeStyle({
    this.margin = const EdgeInsets.symmetric(horizontal: 40),
    this.maxHeight = 280,
    this.borderRadius = 12,
    this.backgroundColor = Colors.white,
    this.titleStyle = const TextStyle(
      fontSize: 18,
      fontWeight: FontWeight.bold,
    ),
    this.contentStyle = const TextStyle(fontSize: 14),
    this.cancelTextStyle = const TextStyle(
      fontSize: 16,
      color: Colors.grey,
    ),
    this.confirmTextStyle = const TextStyle(
      fontSize: 16,
      color: Colors.blue,
    ),
    this.progressTextStyle = const TextStyle(
      fontSize: 12,
      color: Colors.grey,
    ),
    this.buttonHeight = 44,
    this.dividerColor = const Color(0xFFEEEEEE),
    this.progressBuilder,
    this.progressBarBorderRadius = 4,
    this.progressBarHeight = 4,
    this.progressBarBackgroundColor = const Color(0xFFEEEEEE),
    this.progressBarColor = Colors.blue,
    this.progressBarPadding = const EdgeInsets.symmetric(horizontal: 16),
  });
}
